package com.letfox.frm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.frm.dao.FRMDictionaryDao;
import com.letfox.frm.model.FRMDictionary;
import com.letfox.frm.service.FRMDictionaryService;

@Service
public class FRMDictionaryServiceImpl implements FRMDictionaryService {

	@Autowired
	private FRMDictionaryDao dictionaryDao;

	@Override
	public int save(FRMDictionary frmDictionary) {
		return dictionaryDao.insert(frmDictionary);
	}

	@Override
	public int update(FRMDictionary frmDictionary) {
		return dictionaryDao.update(frmDictionary);
	}

	@Override
	public int deleteById(Long id) {
		return dictionaryDao.deleteById(id);
	}

}
